home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 32 / bsl.zip / SOME.DOC < prev   
Text File  |  1990-02-21  |  896b  |  22 lines

  1. Well, here is some example BSL (Begin Strategy Language) code
  2. to show what BSL looks like.  This code is part of the
  3. testing strategy for V2.0 of begin.  As you can see, BSL looks
  4. a lot like C.  The major extensions to C are a "list" data type
  5. and the ability to spawn functions as independent tasks.  You
  6. can also send and receive messages from spawned functions.
  7.  
  8. The main program (at the bottom of the file) spawns off many
  9. housekeeping tasks and then waits for a message from any of them.
  10. The messages that it understands are NEW_ENEMY and NO_ENEMY (sent 
  11. by the Threat task) and NOT_WORKING (sent by the Success task).
  12.  
  13. If this were an ally strategy, the main program would also be able
  14. to receive messages from you (such as [ESCORT Washington 2000]).
  15.  
  16. If there are specific questions about BSL, leave a message on the board
  17. and I will try to answer it.
  18.  
  19. Mike Higgins
  20.  
  21.  
  22.